package org.dromara.system.service;

import org.dromara.system.domain.WbRelationships;
import org.dromara.system.domain.vo.WbRelationshipsVo;
import org.dromara.system.domain.bo.WbRelationshipsBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 节点关系Service接口
 *
 * @author Lion Li
 * @date 2024-09-22
 */
public interface IWbRelationshipsService {

    /**
     * 查询节点关系
     */
    WbRelationshipsVo queryById(Long id);

    /**
     * 查询节点关系列表
     */
    TableDataInfo<WbRelationshipsVo> queryPageList(WbRelationshipsBo bo, PageQuery pageQuery);

    /**
     * 查询节点关系列表
     */
    List<WbRelationshipsVo> queryList(WbRelationshipsBo bo);

    /**
     * 新增节点关系
     */
    Boolean insertByBo(WbRelationshipsBo bo);

    /**
     * 修改节点关系
     */
    Boolean updateByBo(WbRelationshipsBo bo);

    /**
     * 校验并批量删除节点关系信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
